package com.behelpful.demo.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.behelpful.demo.search.entity.SqlSchemaColumn;

/**
 * @author Alay
 * @date 2020-12-29 18:04
 * @project behelpful
 */
public interface SqlSchemaColumnService extends IService<SqlSchemaColumn> {

	/**
	 * 获取数据的字段名称
	 *
	 * @param database
	 * @param tableName
	 * @return
	 */
	String[] columnsByTable(String database, String tableName);

	/**
	 * 移除缓存中的表字段存储
	 *
	 * @param database
	 * @param tableName
	 * @return
	 */
	boolean removeTableColumn(String database, String tableName);
}